package com.yun.dao.db;

import com.yun.pojo.db.Sickroom;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

/*模拟数据库，创建科室表*/
@Repository
@Mapper
public class DbSickroom {
    private static Map<Integer, Sickroom> sickrooms = null;
    static {
        sickrooms = new HashMap<Integer, Sickroom>();
        sickrooms.put(1,new Sickroom(1,"诊疗室"));
        sickrooms.put(2,new Sickroom(2,"药房"));
        sickrooms.put(3,new Sickroom(3,"手术室"));
    }


    public Collection<Sickroom> getSickroom(){
        return sickrooms.values();
    }
}
